{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<div class="form-div">
    <form action="javascript:searchKeyWords()" name="searchForm">
        <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        {$lang.goods_name} <input type="text" name="keyword" size="30" />
        <input type="submit" value="{$lang.button_search}" class="button" />
    </form>
</div>

<form method="post" action="gc_user_search.php?act=batch_drop" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
    <!-- start user_search list -->
    <div class="list-div" id="listDiv">
        {/if}

        <table cellpadding="3" cellspacing="1">
            <tr>
                <th style="width:10%">
                    <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
                    <a href="javascript:listTable.sort('id'); ">{$lang.record_id}</a>{$sort_id}
                </th>
                <th style="width:20%">关键字</th>
                <th style="width:25%">拼音</th>
                <th>结果</th>
                <th><a href="javascript:listTable.sort('all_search'); ">总搜索</a>{$sort_all_search}</th>
                <th><a href="javascript:listTable.sort('month_search'); ">本月</a>{$sort_month_search}</th>
                <th><a href="javascript:listTable.sort('week_search'); ">本周</a>{$sort_week_search}</th>
                <th><a href="javascript:listTable.sort('day_search'); ">今日</a>{$sort_day_search}</th>
                <th>开启</th>
                <th>{$lang.handler}</th>
            </tr>

            {foreach from=$user_search item=user_search}
            <tr>
                <td  align="center"><input value="{$user_search.id}" name="checkboxes[]" type="checkbox">{$user_search.id}</td>
                <td>{$user_search.keywords|escape:html}</td>
                <td>{$user_search.chinese}</td>
                <td  align="center">{$user_search.over}</td>
                <td  align="center">{$user_search.all_search}</td>
                <td  align="center">{$user_search.month_search}</td>
                <td  align="center">{$user_search.week_search}</td>
                <td  align="center">{$user_search.day_search}</td>
                <td  align="center">
                    {if $user_search.open_type}
                    <img src="images/yes.gif" border="0" />
                    {else}
                    <img src="images/no.gif" />
                    {/if}
                </td>
                <td  align="center">
                    <a href="order.php?act=list&amp;user_search_id={$user_search.act_id}"><img src="images/icon_view.gif" title="{$lang.view_order}" border="0" height="16" width="16" /></a>
                </td>
            </tr>
            {foreachelse}
            <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
            {/foreach}
        </table>

        <table cellpadding="4" cellspacing="0">
            <tr>
                <td><input type="submit" name="drop" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" /></td>
                <td  align="right">{include file="page.htm"}</td>
            </tr>
        </table>

        {if $full_page}
    </div>
    <!-- end user_search list -->
</form>

<script type="text/javascript" language="JavaScript">

    listTable.recordCount = {$record_count};
    listTable.pageCount = {$page_count};

    {foreach from=$filter item=item key=key}
    listTable.filter.{$key} = '{$item}';
    {/foreach}

    {literal}
    onload = function()
    {
        document.forms['searchForm'].elements['keyword'].focus();
        startCheckOrder();
    }
    /**
     * 搜索历史记录
     */
    function searchKeyWords()
    {
        var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter['keyword'] = keyword;
        listTable.filter['page'] = 1;
        listTable.loadList();
    }
    {/literal}

</script>

{include file="pagefooter.htm"}
{/if}